﻿/* 10. Write a boolean expression that returns if the bit at position p (counting from 0) 
 * in a given integer number v has value of 1. Example: v=5, p=1 --> false. */

using System;

class BitOnPositionIsOne
{
    static void Main()
    {
        int v;
        byte p;

        Console.Write("v = ");
        v = int.Parse(Console.ReadLine());
        Console.Write("p = ");
        p = byte.Parse(Console.ReadLine());

        Console.WriteLine(((1 << p) | v) == v ? "true" : "false");
    }
}